866dc9229ab178cf79e7bf6ba5199fc84bd27537,bagri-tools/bagri-tools-vvmp/src/main/java/com/bagri/tools/vvm/ui/SchemaCapacityPanel.java,CapacityStatsProvider,run,#,96
Before Change
chart.addValues(partition, new long[] {eCost, cCost, rCost, iCost, dCost});
}
long overallCost = totalECost + totalCCost + totalRCost + totalICost + totalDCost;
chart.updateDetails(new String[] {chart.formatDecimal(totalECost), chart.formatDecimal(totalCCost), chart.formatDecimal(totalRCost),
chart.formatDecimal(totalICost), chart.formatDecimal(totalDCost), chart.formatDecimal(overallCost)});
}
} catch (Exception ex) {
LOGGER.severe(ex.getMessage());
After Change
}
long overallCost = totalECost + totalCCost + totalRCost + totalICost + totalDCost;
Component[] labels = header.getComponents();
((JLabel) labels[0]).setText("Total elements cost: " + chart.formatDecimal(totalECost));
((JLabel) labels[1]).setText("Total content cost: " + chart.formatDecimal(totalCCost));
((JLabel) labels[2]).setText("Total results cost: " + chart.formatDecimal(totalRCost));
((JLabel) labels[4]).setText("Total indices cost: " + chart.formatDecimal(totalICost));
((JLabel) labels[5]).setText("Total documents cost: " + chart.formatDecimal(totalDCost));
((JLabel) labels[6]).setText("Overall cost: " + chart.formatDecimal(overallCost));
}